package com.qy139.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import java.util.Date;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author yuhaochen
 * @since 2021-12-11
 */
@Api("员工离职实体类")
@Data
@EqualsAndHashCode(callSuper = false)
public class UserLeave implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 编号
     */
    @ApiModelProperty("编号")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 员工号
     */
    @ApiModelProperty("员工号")
    private Integer userId;

    /**
     * 离职状态 1
     */
    @ApiModelProperty("离职状态 1")
    private Integer status;

    /**
     * 操作员工号
     */
    @ApiModelProperty("操作员工号")
    private Integer operatorId;

    /**
     * 创建时间
     */
    @ApiModelProperty("创建时间")
    private Date createtime;

    /**
     * 入职时间
     */
    @ApiModelProperty("入职时间")
    private Date hiredate;

    /**
     * 离职时间
     */
    @ApiModelProperty("离职时间")
    private Date firedate;

    @ApiModelProperty("员工实体")
    @TableField(exist = false)
    private TabUser user;

    @ApiModelProperty("员工实体")
    @TableField(exist = false)
    private TabUser operator;

    @TableField(exist = false)
    private Store store;
}
